Skip to content

feat: sync SDK to public-api v1.1.0#3

Merged
batuhanisildak-malwation merged 2 commits into
mainfrom
feat/public-api-1.1.0-sync
Jun 23, 2026
Merged

feat: sync SDK to public-api v1.1.0#3
batuhanisildak-malwation merged 2 commits into
mainfrom
feat/public-api-1.1.0-sync

Conversation

@batuhanisildak-malwation

@batuhanisildak-malwation batuhanisildak-malwation commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Brings the SDK into exact agreement with the current public-api HTTP contract (drift since v1.0.3 / 2026-05-14). 14 sync items, each TDD-first; full suite 605 passing, mypy --strict + ruff clean.

⚠️ Breaking response-shape changes

  • SubmissionOverviewJobs: {completed,total}{total,succeeded,failed,skipped,finished, completed(will_deprecate)}
  • CdrResponse: {items,total} envelope → per-submission singleton (CdrResult removed)
  • StaticScanResponse: {items,total} envelope → per-format discriminated singleton (extra="allow"; StaticScanResult removed)

Added / changed (non-breaking)

  • Submission.score/family, OverviewSummary.score/family, ReportStatus.duration
  • Indicator.category strlist[str]
  • config MetafieldOption.active/accessible, MetafieldOptionValue.accessible, EnvironmentOption.active/accessible
  • new get_static_scan_strings() (streaming) and list_network_configs() (/v1/network-configs)
  • request params: create_url_submission(safe_browsing=), list_submissions(sort=, order=), get_behaviours(type=, process_name=)
  • USER_AGENT/version → 1.1.0; CHANGELOG.md added

All changes mirrored in both sync + async clients and the shipped FakeThreatZoneAPI test harness.

… category list, config flags, CDR & static-scan singletons, static-scan strings, request params, network-configs)
@batuhanisildak-malwation batuhanisildak-malwation merged commit 36f56f6 into main Jun 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant